

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Edit RecruteeReference</title>
    </head>
    <body>
        <div class="navsub">
          <span class="menuButton"><g:link class="create" action="create">New RecruteeReference</g:link></span>
        </div>
        <div class="body">
            <h1>Edit RecruteeReference</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${recruteeReferenceInstance}">
            <div class="errors">
                <g:renderErrors bean="${recruteeReferenceInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <input type="hidden" name="id" value="${recruteeReferenceInstance?.id}" />
                <input type="hidden" name="version" value="${recruteeReferenceInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="referenceName">Reference Name:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:recruteeReferenceInstance,field:'referenceName','errors')}">
                                    <input type="text" maxlength="100" id="referenceName" name="referenceName" value="${fieldValue(bean:recruteeReferenceInstance,field:'referenceName')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="referencePhone">Reference Phone:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:recruteeReferenceInstance,field:'referencePhone','errors')}">
                                    <input type="text" maxlength="100" id="referencePhone" name="referencePhone" value="${fieldValue(bean:recruteeReferenceInstance,field:'referencePhone')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="referencePosition">Reference Position:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:recruteeReferenceInstance,field:'referencePosition','errors')}">
                                    <input type="text" maxlength="250" id="referencePosition" name="referencePosition" value="${fieldValue(bean:recruteeReferenceInstance,field:'referencePosition')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="workedWithRecruteeFrom">Worked With Recrutee From:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:recruteeReferenceInstance,field:'workedWithRecruteeFrom','errors')}">
                                    <g:datePicker name="workedWithRecruteeFrom" value="${recruteeReferenceInstance?.workedWithRecruteeFrom}" precision="minute" noSelection="['':'']"></g:datePicker>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="workedWithRecruteeTo">Worked With Recrutee To:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:recruteeReferenceInstance,field:'workedWithRecruteeTo','errors')}">
                                    <g:datePicker name="workedWithRecruteeTo" value="${recruteeReferenceInstance?.workedWithRecruteeTo}" precision="minute" noSelection="['':'']"></g:datePicker>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="comments">Comments:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:recruteeReferenceInstance,field:'comments','errors')}">
                                    <textarea rows="5" cols="40" name="comments">${fieldValue(bean:recruteeReferenceInstance, field:'comments')}</textarea>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="followup">Followup:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:recruteeReferenceInstance,field:'followup','errors')}">
                                    <g:select optionKey="id" from="${Followup.list()}" name="followup.id" value="${recruteeReferenceInstance?.followup?.id}" noSelection="['null':'']"></g:select>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
